/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package treegen;
enum BranchType {Right, Up, Down};
/**
 *
 * @author Елена
 */
public class Branch {
    
    static int levelCount;
    
    int levelNum;
    double length;
    double width;
    double radByTrunk;
    double heightByTrunk;
    double angle;
    int childrenCount;
    int repetCount;
    double height;
    BranchType type;
    
    Branch(int count, int num) {
        levelCount = count;
        levelNum = num;
    }
    
    public void setLength(double length) {
        this.length = length;
    }
    
    public void setWidth(double width) {
        this.width = width;
    }
    
    public void setRad (double rad) {
        radByTrunk = rad;
    }
    
    public void setHeightByTrunk (double height) {
        heightByTrunk = height;
    }
    
    public void setAngle (double angle) {
        this.angle = angle;
    }
    
    public void setChildrenCount (int count) {
        childrenCount = count;
    }
    
    public void setRepetCount(int count) {
        repetCount = count;
    }
    
    public void setHeight(double height) {
        this.height = height;
    }
    
    public void setType(BranchType type) {
        this.type = type;
    }
    
    public static void setLevelCount (int count) {
        levelCount = count;
    }
}
